#ifdef __cplusplus
#include <cstdlib>
#else
#include <stdlib.h>
#endif
#ifdef __APPLE__
#include <SDL/SDL.h>
#else
#include <SDL.h>
#endif


#include "include/sdl_world.h"
#include "include/ball.h"
#include "include/drawable.h"
#include "include/input.h"
#include "include/paddle.h"

int main ( int argc, char** argv )
{
    //Create a new world
    SDL_World* myGFXWorld = new SDL_World(640,480,60);


    //Create a ball
    Ball* myBall = new Ball();
    // add ball to scene
    myGFXWorld->AddToScene(myBall);
    // set initial position
    myBall->UpdatePosition(320,240);

    //Create a new paddle and set it up in the scene
    Paddle* myPaddle= new Paddle ();
    myGFXWorld->AddToScene(myPaddle);
    myPaddle->UpdatePosition(200,200);

    //Draw the main game loop
    while(true)
    {
        myGFXWorld->Draw();
    }
}
